<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<script src="../../../resources/js-test.js"></script>
<script src="../resources/common.js"></script>
<script>
if (window.internals)
    internals.runtimeFlags.langAttributeAwareFormControlUIEnabled = true;
</script>
</head>
<body>
<div id=console></div>
<input type="time" value="13:23:45.1" lang="en" /><br>
<input type="time" value="13:23:45.1" lang="ar" /><br>
<input type="time" value="13:23:45.1" lang="ar-EG" /><br>
<input type="time" value="13:23:45.1" lang="fr" /><br>
<input type="time" value="13:23:45.1" lang="ja" /><br>
<input type="time" value="13:23:45.1" lang="ko" /><br>
<!-- Windows implementation does not support zh-Hans nor
  zh-CN. Use 'zh', instead. -->
<input type="time" value="13:23:45.1" lang="zh" />
<script>
description("Tests the time format for various locales.", true);
debug("The following lines depend on the locale data in the system.");
var inputs = document.getElementsByTagName("input");
for (var i = 0; i < inputs.length; ++i) {
     debug(inputs[i].lang + ': ' + getUserAgentShadowTextContent(inputs[i]));
}
</script>
</body>
</html>
